﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="PortalCacheManager.ascx.cs"
    Inherits="Portal.Administrator.Portals.PortalCacheManager" %>
<%@ Register Assembly="NCS.WebControl" Namespace="NCS.WebControls"
    TagPrefix="cc2" %>
<%@ Register Assembly="NCS.Module.MultiLanguage" Namespace="NCS.Module.MultiLanguage.WebControls"
    TagPrefix="cc1" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:UpdatePanel ID="upanelPortalCacheManagement" runat="server" UpdateMode="Conditional"
    RenderMode="Inline">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnRemoveAll" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="btnRemoveCache" EventName="Click" />
        <asp:AsyncPostBackTrigger ControlID="dropPortal" EventName="SelectedIndexChanged" />
        <asp:AsyncPostBackTrigger ControlID="dropZone" EventName="SelectedIndexChanged" />
    </Triggers>
    <ContentTemplate>
        <table border="0" cellpadding="2" cellspacing="2" style="width: 100%" class="InputBox">
            <tr>
                <td align="center">
                    <asp:Label ID="lblUpdateStatus" runat="server" meta:resourcekey="lblUpdateStatusResource1"
                        Font-Bold="True" ForeColor="Blue"></asp:Label></td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Panel ID="pnlCacheByPortal" runat="server">
                        <table style="width: 100%;" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td>
                                    <asp:Label ID="lblPortal" runat="server" meta:resourcekey="lblPortalResource1"></asp:Label>&nbsp;
                                    <asp:DropDownList
                                        ID="dropPortal" runat="server" Width="170px" meta:resourcekey="dropPortalResource1"
                                        AutoPostBack="True" DataTextField="Portal_Name" DataValueField="PortalID" OnSelectedIndexChanged="dropPortal_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="height: 22px">
                                    <asp:Label ID="lblZone" runat="server" meta:resourcekey="lblZoneResource1"></asp:Label>&nbsp;<asp:DropDownList
                                        ID="dropZone" runat="server" Width="170px" meta:resourcekey="dropPortalResource1"
                                        AutoPostBack="True" DataTextField="Zone_Name" DataValueField="Zone_ID" OnSelectedIndexChanged="dropZone_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                    <asp:ListBox ID="lstCache" runat="server" Height="311px" Width="471px" SelectionMode="Multiple"
                                        meta:resourcekey="lstCacheResource1"></asp:ListBox></td>
                            </tr>
                        </table>
                    </asp:Panel>
                    <asp:Panel ID="pnlCacheAll" runat="server">
                        <table width="471" cellspacing="0" cellpadding="0" align="center">
                            <tr>
                                <td><asp:ListBox ID="lstAllCache" runat="server" Height="311px" Width="471px" SelectionMode="Multiple"
                                        ></asp:ListBox>
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="center">
                </td>
            </tr>
            <tr>
                <td align="center">
                    <cc2:ButtonRoleDelete ID="btnRemoveCache" runat="server"
                        CssClass="Button" OnClick="btnRemoveCache_Click" Text="Xóa bộ đệm" />
                    <cc2:ButtonRoleDelete ID="btnRemoveAll" runat="server" CssClass="Button" OnClick="btnRemoveAll_Click"
                        Text="Xóa toàn bộ" /></td>
            </tr>
        </table>
    </ContentTemplate>
</asp:UpdatePanel>
